{% extends "base.html" %}
{% block title %}{{page_title}}{% endblock %}
{% block content%}
<script type="text/javascript">
$(document).ready(function() {
	$(".moral_mark a").each(function(){ 
				if ($(this).html()<20){$(this).parent().css("background-color","#FC0")}; 
									});
}); 
</script>

<div class="userlist">
<table  id="thetable">
<thead> 
<tr> 
    <th><a href="#">座号</a></th>
    <th>姓名</th>
    <th>管理</th>
    <th><a href="#">德育分（班）</a></th>
    <th><a href="#">德育分（校）</a></th>
    <th>职务</th>
</tr> 
</thead> 
<tbody> 
{% for stu in Students %}
  <tr>
    <td>{{stu.sitenum}}</td>
    <td><a href="/show_user_{{stu.key}}.html">{{stu.user.first_name}}</a></td>
    <td>
    {%if perms.moral.can_change_moral_pri %}
    <a href="/change_pri_moral_{{stu.key}}.html">班</a>&nbsp;
    {% endif %}
    {%if perms.moral.can_change_moral_pub %}
    <a href="/change_pub_moral_{{stu.key}}.html">校</a>
    {% endif %}    
    </td>    
    <td class="moral_mark"><a href="/moral_log_pri_{{stu.key}}.html">{{stu.moral_pri_mark}}</a></td>
    <td class="moral_mark"><a href="/moral_log_pub_{{stu.key}}.html">{{stu.moral_pub_mark}}</a></td>
    <td>{{stu.position.title}}</td>

  </tr>
{% endfor %}
</tbody>
</table>
</div>
   
{% endblock %}